var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push( {
	name: 'TibiaPic',
	version: '0.1',
	prepareImgLinks: function(callback) {
		var res = [];
		$(".opacity a img").each(function() {
			var link = $(this).parents('a:eq(0)');
			if(link) {
				$(link).data('hoverZoomSrc', ['http://www.tibiapic.com/' + link.attr('href').replace(/image\.php/i, 'show.php')]);
				var title = $(link).parents('tr:eq(0)');
				if(title) {
					var title = $(link).parents('tr:eq(0)');
					title = $(title).find('#inforesult .title a');
					$(link).data('hoverZoomCaption', title.html());
				}
				res.push(link);
			}
		});
		callback($(res));
	}
});
